package com.corechina.apex_osswords.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.corechina.apex_osswords.common.Response;
import com.corechina.apex_osswords.domain.entity.CoreEquipment;

/**
 * <p>
 * 设备表 服务类
 * </p>
 *
 * @author cc
 * @since 2022-12-09
 */
public interface ICoreEquipmentService extends IService<CoreEquipment> {

    Response add(CoreEquipment coreEquipment);

    Response getList(String name, Integer place, Integer serviceId, Integer type, Integer projectId, Integer pageIndex, Integer pageSize);

    Response getOne(Integer id);

    Response getEquipmentForWeiXin(Integer projectId, Integer place, Integer serviceId, Integer type, Integer pageIndex, Integer pageSize);

    Response getOneForWeiXin(Integer id);

    Response getEquipmentDetailsBySerialNumber(String serialNumber, Integer type);

    Response delBySerialNumber(String serialNumber);

    boolean checkEquipment(Integer id);

    Response update(CoreEquipment coreEquipment);

}
